package com.example.qgtradeprovider.controller;

import com.example.qgtradeprovider.service.TradeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
public class TradeController {

    @Resource
    private TradeService service;

    @RequestMapping("/addTrade")
    public int addTrade(@RequestParam Map map){
        return service.addTrade( map );
    }

}
